package Simple2;

import java.util.*;

public class Flying_Arrange {


	
	public ArrayList<Ticket> solution(Ticket[] input){
		
		HashMap<String,String> temp = new HashMap<>();
		HashMap<String,String> reverse = new HashMap<>();		
		ArrayList<Ticket> to_return = new ArrayList<>();
		for(int i=0;i<input.length;i++){
			temp.put(input[i].origin,input[i].destination);
			reverse.put(input[i].destination, input[i].origin);
		}
		
		Iterator<String> findfirst = reverse.keySet().iterator();
		
		return null;
		
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
